import java.util.ArrayList;

public class EmployeeList {
    private ArrayList<Employee> list = new ArrayList<>();

    public ArrayList<Employee> getList() {
        return list;
    }

    public void setList(ArrayList<Employee> list) {
        this.list = list;
    }

    public void addEmployee(Employee employee) {
        list.add(employee);
    }

    public void accept(Department handler){
        for(Employee employee : list){
            employee.accept(handler);
        }
    }
}
